package com.zlt.dao;

import com.zlt.entity.Interview;
import com.zlt.entity.ViewInterview;
import com.zlt.vo.InterviewVo;
import com.zlt.vo.Pager;

import java.util.List;

public interface InterviewDao {
    int insertInterview(Interview interview);

    Long selectInterviewCount();

    List<Interview> selectAllInterview(String initiator, Integer cid, Pager<InterviewVo> pager);

    int updateInterview(Integer id, String state);


    List<ViewInterview> getInterviewViewByUsername(String username);

    boolean setInterviewState(String username,String id, String state);
}
